package com.xnyzc.lhy.mis.service.impl.message;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.common.penum.EErrorCode;
import com.xnyzc.lhy.mis.entity.message.OaSysMessageDriver;
import com.xnyzc.lhy.mis.entity.message.OaSysMessageDriverInfo;
import com.xnyzc.lhy.mis.mapper.message.OaSysMessageDriverMapper;
import com.xnyzc.lhy.mis.service.message.IOaSysMessageDriverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wangshuo
 * @since 2019-10-20
 */
@Service
public class OaSysMessageDriverServiceImpl extends ServiceImpl<OaSysMessageDriverMapper, OaSysMessageDriver> implements IOaSysMessageDriverService {
    @Autowired
    OaSysMessageDriverMapper oaSysMessageDriverMapper;
    @Override
    public Rv querySysMessageDriver(Long inappId) {
        List<OaSysMessageDriverInfo> oaSysMessageDrivers = oaSysMessageDriverMapper.querySysMessageDriver(inappId);
        return Rv.wrap(EErrorCode.success,oaSysMessageDrivers);
    }
}
